/*
 * Copyright (C) 拾光分享网 
 * All rights reserved, Designed By www.hiai.top.
 * Email：goodsking@163.com.
 */
package top.hiai.search;

import top.hiai.config.BaseController;

/**
* @Author www.hiai.top
* @Email  goodsking@163.com
* @Message 更多资源尽在www.hiai.top
* @Introduction 类的介绍
*/

public class SearchController extends BaseController {
	
	SearchService srv = SearchService.me;
	
	public void index(){
		String q = get("q");
		setAttr("search", q);
//		setAttr("articleSearch", srv.articleSearch(q));

		//获取搜索的文章信息，分页显示
		setAttr("articleSearch", srv.articleSearchPaginate(getParaToInt("p", 1), limtCount,q));

		render("search_result.html");
	}

}